home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
ddjcompr
/
urban
/
sendbits.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-29
|
482b
|
36 lines
send_bits() {
unsigned int bit;
if(((high^low)&0x8000)==0) {
#ifndef UN
send_bit(bit=(high&0x8000));
#endif
shift_bits();
#ifndef UN
while(k>0) {
send_bit(bit==0);
--k;
}
#endif
while(((high^low)&0x8000)==0) {
#ifndef UN
send_bit(high&0x8000);
#endif
shift_bits();
}
}
while((low&0x4000)&&((high&0x4000)==0)) {
shift_bits();
#ifdef UN
apoint^=0x8000;
#else
++k;
#endif
low&=0x7fff;
high|=0x8000;
}
}